package com.glq1218.util;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class WebUtils {

    public static void renderString(HttpServletResponse response, String message) {
        response.setContentType("application/json");
        response.setCharacterEncoding("utf-8");
        try {
            response.getWriter().print(message);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
